<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      html,
      body {
        margin: 0;
        width: 100%;
        height: 100%;
      }

      body {
        position: relative;
        background: linear-gradient(
            to bottom,
            rgba(32, 255, 77, 0.15) 0px,
            rgba(32, 255, 77, 0.15) 2px,
            transparent 2px
          ),
          linear-gradient(
            to right,
            rgba(32, 255, 77, 0.3) 0px,
            rgba(32, 255, 77, 0.3) 2px,
            transparent 2px
          ),
          black;
        background-size: 40px 40px;
      }
      #d {
        position: absolute;
        top: 50%;
        left: 50%;
        margin-top: -250px;
        margin-left: -250px;
        box-sizing: border-box;
        width: 500px;
        height: 500px;
        border: 2px solid #1eea47;
        border-radius: 50%;
        /* 设置从原点到外围的渐变 */
        background-image: radial-gradient(
          rgba(32, 255, 77, 0.3) 0%,
          transparent 75%
        );
      }

      #d::before {
        position: absolute;
        content: "";
        width: 100%;
        height: 2px;
        background-color: #1eea47;
        top: 50%;
      }
      #d::after {
        position: absolute;
        content: "";
        width: 2px;
        height: 100%;
        background-color: #1eea47;
        left: 50%;
      }
      #d1 {
        position: absolute;
        top: 50%;
        left: 50%;
        margin-top: -200px;
        margin-left: -200px;
        box-sizing: border-box;
        width: 400px;
        height: 400px;
        border: 2px solid #1eea47;
        border-radius: 50%;
      }
      #d2 {
        position: absolute;
        top: 50%;
        left: 50%;
        margin-top: -150px;
        margin-left: -150px;
        box-sizing: border-box;
        width: 300px;
        height: 300px;
        border: 2px solid #1eea47;
        border-radius: 50%;
      }
      #d3 {
        position: absolute;
        top: 50%;
        left: 50%;
        margin-top: -100px;
        margin-left: -100px;
        box-sizing: border-box;
        width: 200px;
        height: 200px;
        border: 2px solid #1eea47;
        border-radius: 50%;
      }
      @keyframes zz {
        from {
          transform: rotate(0deg);
        }
        to {
          transform: rotate(360deg);
        }
      }
      #zz {
        position: absolute;
        width: 248px; /* 设置里面扇形，最大的园宽是500px,500/2-2px边框=248px */
        height: 248px;
        /* border: 2px solid #1eea47; */
        border-radius: 250px 0px 0px; /* 设置左上圆角为100%就是扇形 */
        background-image: linear-gradient(
          45deg,
          transparent,
          transparent 50%,
          rgba(1, 243, 49, 0) 50%,
          rgba(1, 243, 49, 1)
        );
        transform-origin: 100% 100%;
        animation-name: zz;
        animation-duration: 10s;
        animation-timing-function: linear;
        animation-iteration-count: infinite;
      }
      #zz > div {
        position: absolute;
        width: 15px;
        height: 15px;
        border-radius: 50%;
        background-image: radial-gradient(
          rgb(30, 234, 71) 1px,
          rgba(30, 234, 71, 0.1)
        );
        animation-name: yd, dd;
        animation-duration: 5s;
        animation-timing-function: linear;
        animation-iteration-count: infinite;
      }
      @keyframes yd {
        to {
          left: 120px;
        }
      }
      @keyframes dd {
        form {
          opacity: 1;
        }
        to {
          opacity: 0;
        }
      }

      #zz > div:nth-of-type(1) {
        top: 150px;
        left: 100px;
      }
      #zz > div:nth-of-type(2) {
        top: 140px;
        left: 50px;
      }
      #zz > div:nth-of-type(3) {
        top: 200px;
        left: 200px;
      }
    </style>
  </head>

  <body>
    <div id="d">
      <div id="zz">
        <div></div>
        <div></div>
        <div></div>
      </div>
      <div id="d1">
        <div id="d2">
          <div id="d3"></div>
        </div>
      </div>
    </div>
  </body>
</html>
